package com.lihao.sam.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Qinheyun
 * @Description: 维修施工统计表
 */
@Data
@NoArgsConstructor
public class MaintenanceStatistical {
    /** 序号*/
    private Integer id;

    /** 施工单位*/
    private String maintenanceUnits;

    /** 施工负责人*/
    private String maintenanceName;

    /** 开始日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date beginTime;

    /** 结束日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date finishTime;

    public MaintenanceStatistical(String maintenanceUnits, String maintenanceName, Date beginTime, Date finishTime) {
        this.maintenanceUnits = maintenanceUnits;
        this.maintenanceName = maintenanceName;
        this.beginTime = beginTime;
        this.finishTime = finishTime;
    }
}
